//
//  TabExampleViewController.m
//  TabExample
//

#import "TabExampleViewController.h"

@implementation TabExampleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	
	tab1 = [[Tab1Controller alloc] init];
	tab2 = [[Tab2Controller alloc] init];
	tab3 = [[Tab3Controller alloc] init];
	NSArray *arrTabs = [NSArray arrayWithObjects:tab1, tab2, tab3, nil];
	[self setViewControllers:arrTabs animated:YES];
}

/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end
